<?php
use_helper('I18N');
$culture = $sf_user->getCulture();
?>
<?php if (isset($menu)): ?>
<div id="content_inner">
  <div id="inmenu">
    <ul id="pagetab-lv1">
      <?php if ($menu == "about"): ?>
      <li><a href="/about/advantages"><?php echo __('ONEFX Advantages') ?></a></li>
      <li><a href="/about"><?php echo __('About ONEFX') ?></a></li>
      <li><a href="/about/qualifications"><?php echo __('Qualifications') ?></a></li>
      <li><a href="/about/investorProtection"><?php echo __('Investor Protection') ?></a></li>
      <li><a href="/about/contactUs"><?php echo __('Contact Us') ?></a></li>
      <?php elseif ($menu == "products"): ?>
      <li><a href="/products"><?php echo __('Overview', null, 'products') ?></a></li>
      <li><a href="/products/forex"><?php echo __('FOREX') ?></a></li>
      <li><a href="/products/preciousMetals"><?php echo __('Precious Metals') ?></a></li>
      <li><a href="/products/tradingMethod"><?php echo __('Trading Method') ?></a></li>
      <?php elseif ($menu == "platforms"): ?>
      <li><a href="/platforms"><?php echo __('Overview', null, 'platforms') ?></a></li>
      <li><a href="/platforms/onefxmt4"><?php echo __('ONEFX MT4') ?></a></li>
      <li><a href="/platforms/softwareDownloads"><?php echo __('Software Downloads') ?></a></li>
      <?php elseif ($menu == "accounts"): ?>
      <li><a href="/accounts"><?php echo __('Open an Account') ?></a></li>
      <li><a href="/accounts/demoAccount"><?php echo __('Demo Account') ?></a></li>
      <?php elseif ($menu == "deposit"): ?>
      <li><a href="/deposit"><?php echo __('Deposit / Withdrawals Instruction') ?></a></li>
      <li><a href="/deposit/fundSafety"><?php echo __('Fund Safety') ?></a></li>
      <?php elseif ($menu == "market"): ?>
      <li><a href="/market"><?php echo __('Price Quotes') ?></a></li>
      <?php elseif ($menu == "education"): ?>
      <li><a href="/education"><?php echo __('Basic') ?></a></li>
      <li><a href="/education/tradingGuides"><?php echo __('Trading Guides') ?></a></li>
      <?php endif; ?>
    </ul>
  </div>
  <div id="inmenu_bot"></div>
</div>

<script type="text/javascript">
  var index = <?php echo isset($active) ? $active : null ?>;

  if (index != null) {
    var obj = $('ul#pagetab-lv1 li').eq(index);
    
    if (obj) {
      obj.addClass('on');
    }
  }
</script>
<?php else: ?>
<br /><br />
<?php endif; ?>
